pub(crate) mod config;
pub(crate) mod dubbo;
pub(crate) mod gateway;

fn main() {
    if std::env::var("SMOL_THREADS").is_err() {
        std::env::set_var("SMOL_THREADS", num_cpus::get().to_string());
    }

    log4rs::init_file("log4rs.yaml", Default::default()).unwrap();

    smol::block_on(gateway::listen())
}
